package org.rguess.patterns.refelect;

import java.lang.reflect.Field;

public class Test {

	public static void main(String[] args) throws Exception {
		User user = new User();
		Field field = user.getClass().getDeclaredField("str");
		field.setAccessible(true);
		field.set(user, "hello");
		System.out.println(user.getStr());
	}
}
